for _, file in ipairs({
	"base",
	"uiobject", "fontinstance", "region", "font", "frame",
	"api"
}) do
	dofile(file..".lua")
end

local function test()
	local test1 = UI.CreateObject("FontInstance", "NormalFont")
	local test2 = UI.CreateObject("FontInstance", "OtherFont")
	
	test2:SetFont("a", 25, "TEST")
	test1:SetFontObject(test2)
	
	print(test1:GetObjectType(), test1:GetFont())
	
	local UIParent = UI.CreateObject("Frame", "UIParent")
	UIParent:SetWidth(1024)
	UIParent:SetHeight(768)
	
	local test = UI.CreateObject("Region")
	test:SetParent("UIParent")
	
	test:SetPoint("CENTER")
	test:SetWidth(100)
	test:SetHeight(100)
	
	print(test:GetLeft(), test:GetTop())
end

test()
